const pxToRem = require('postcss-pxtorem')
const autoprefixer = require('autoprefixer')
// const FileManagerPlugin = require('filemanager-webpack-plugin')

module.exports = {
  // publicPath: "./",
  outputDir:"./dist/"+process.env.VUE_APP_MODULE,
  // configureWebpack: {
  //   //自动压缩
  //   plugins: [
  //     new FileManagerPlugin({
  //       events: {
  //         onEnd: {
  //           delete: [
  //             "./dist/"+process.env.VUE_APP_MODULE+".zip",
  //           ],
  //           archive: [
  //             {source: "./dist/"+process.env.VUE_APP_MODULE, destination: "./dist/"+process.env.VUE_APP_MODULE+".zip"},
  //           ]
  //         }
  //       }
  //     })
  //   ],
  // },
  css: {
    loaderOptions: {
      postcss: {
        plugins: [
          autoprefixer(),
          pxToRem({
            rootValue: 64,
            propList: ['*'],
            selectorBlackList: ['van-circle__layer']
          })
        ]
      }
    }
  }
}
//375px 即100%宽度，写px会自动rem处理，如果不想被rem处理，可以使用PX来写   750设计稿需要除以2
